#include <head.h>

int main(int argc, char const *argv[])
{
    
    int shmid;

    key_t key = ftok("./key", 1);

    shmid = shmget(key ,4096,IPC_CREAT|0666);
    if(shmid == -1)
    {
        perror("shmget");
        return -1;
    }
    printf("shmid = %d\n", shmid);
    return 0;
}